-- GENERATED SPELL FOR [Mosh'Ogg Witch Doctor] --


function spell0_1144(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1144', 602, 1)
end

function spell1_1144(pUnit, Event) --@Ward of Laze,Self--
pUnit:FullCastSpellOnTarget(3827,pUnit)
pUnit:RegisterEvent('Sorts_1144', 0, 1)
end

function Sorts_1144(pUnit, Event)
local choix_sorts_1144 = math.random(0, 1)
if choix_sorts_1144 == 0 then
pUnit:RegisterEvent('spell0_1144', 1, 1)
end
if choix_sorts_1144 == 1 then
pUnit:RegisterEvent('spell1_1144', 1, 1)
end
end

function mob1144_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1144', math.random(1500, 3000), 1)
end

function mob1144_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1144_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1144_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1144, 1, 'mob1144_Action')
RegisterUnitEvent(1144, 2, 'mob1144_Leave')
RegisterUnitEvent(1144, 3, 'mob1144_Kill')
RegisterUnitEvent(1144, 4, 'mob1144_Die')
